package com.luisliuyi.demo.binder;

public class Singlton implements ISinglton{
    private static Singlton sInstance = null;
    private UserInfo userInfo;
    private Singlton() {
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public static synchronized Singlton getInstance() {
        if (sInstance == null) {
            sInstance = new Singlton();
        }
        return sInstance;
    }
}
